import 'package:flutter/material.dart';
import 'package:wechat_demo/Service/common_widget.dart';
import '../../Service/global.dart';
import 'discover_cell.dart';

class DiscoverPage extends StatelessWidget {
  const DiscoverPage({super.key});

  @override
  Widget build(BuildContext context) {
    return Scaffold(
      appBar: AppBar(
        title: const Text("发现"),
        backgroundColor: Global.themColor,
        elevation: 0.0,
      ),
      body: Container(
        alignment: Alignment.center,
        color: Global.themColor,
        child: ListView(
          children: const [
            DiscoverCell(
              leftIcon: Icon(Icons.add),
              leftTitle: "朋友圈",
            ),
            SizedBox(
              height: 10,
            ),
            DiscoverCell(
              leftIcon: Icon(Icons.place),
              leftTitle: "视频号",
              rightTitle: "视频号子标题",
              showRed: true,
            ),
            CellLine(
              lineColor: Colors.grey,
              leftMargin: 50,
              leftColor: Colors.white,
            ),
            DiscoverCell(
              leftIcon: Icon(Icons.book),
              leftTitle: "直播",
            ),
          ],
        ),
      ),
    );
  }
}
